package com.ophiux.cs.domain.appraise.model.entity;

import com.ophiux.cs.domain.core.Entity;
import com.ophiux.utils.common.DateUtil;

/**
 * 说明：满意度评价表<br>
 * <h1>创 建 人: hehailong<br></h1>
 * 创建日期: 2018年8月15日 上午9:40:42<br>
 * 修改记录：
 */
public class CsUserAppraises extends Entity {
	/**
	 *
	 */
	private int ID;

	/**
	 *评价ID
	 */
	private String APPRAISE_ID;
	
	/**
	 * 用户id
	 */
	private String USER_ID;

	/**
	 *医生ID
	 */
	private String DOCTOR_ID;

	/**
	 *咨询记录ID
	 */
	private String RECORD_ID;

	/**
	 *评分
	 */
	private String MARK;

	/**
	 *评价内容
	 */
	private String CONTENT;

	/**
	 *创建时间 格式：yyyy-mm-dd 24hh:mm:ss
	 */
	private String CREATE_TIME;

	/**
	 *治疗效果
	 */
	private String CS_EFFECT;

	/**
	 *评价时间
	 */
	private String APPRAISE_TIME;

	/**
	 *患者姓名
	 */
	private String PATIENT_NAME;

	/**
	 *性别 1：男   0：女
	 */
	private String SEX;

	/**
	 *电话
	 */
	private String PHONE;

	/**
	 *咨询/诊疗时间
	 */
	private String CS_TIME;
	
	
	/**
	 * 新建一条评价记录
	 * @param uSER_ID		用户ID
	 * @param dOCTOR_ID		医生ID
	 * @param rECORD_ID		咨询记录ID
	 */
	public CsUserAppraises(String uSER_ID , String dOCTOR_ID, String rECORD_ID) {
		super();
		USER_ID=uSER_ID;
		APPRAISE_ID = getAppraiseId();
		DOCTOR_ID = dOCTOR_ID;
		RECORD_ID = rECORD_ID;
		CREATE_TIME = DateUtil.getCurDateStr();
		APPRAISE_TIME = DateUtil.getCurDateStr();
	}
	
	/**
	 * 获取评价id
	 * @return
	 */
	public static String getAppraiseId() {
		return DateUtil.getCurDateRandom();
	}
	
	/**
	 * 添加咨询订单中就诊人信息
	 * @param patientName
	 * @param sex
	 * @param phone
	 */
	public void addPatientInfo(String patientName,String sex,String phone) {
		PATIENT_NAME = patientName;
		SEX = sex;
		PHONE = phone;
	}

	public int getID() {
		return ID;
	}

	public void setID(int iD) {
		ID = iD;
	}

	public String getAPPRAISE_ID() {
		return APPRAISE_ID;
	}

	public void setAPPRAISE_ID(String aPPRAISE_ID) {
		APPRAISE_ID = aPPRAISE_ID;
	}

	public String getDOCTOR_ID() {
		return DOCTOR_ID;
	}

	public void setDOCTOR_ID(String dOCTOR_ID) {
		DOCTOR_ID = dOCTOR_ID;
	}

	public String getRECORD_ID() {
		return RECORD_ID;
	}

	public void setRECORD_ID(String rECORD_ID) {
		RECORD_ID = rECORD_ID;
	}

	public String getMARK() {
		return MARK;
	}

	public void setMARK(String mARK) {
		MARK = mARK;
	}

	public String getCONTENT() {
		return CONTENT;
	}

	public void setCONTENT(String cONTENT) {
		CONTENT = cONTENT;
	}

	public String getCREATE_TIME() {
		return CREATE_TIME;
	}

	public void setCREATE_TIME(String cREATE_TIME) {
		CREATE_TIME = cREATE_TIME;
	}

	public String getCS_EFFECT() {
		return CS_EFFECT;
	}

	public void setCS_EFFECT(String cS_EFFECT) {
		CS_EFFECT = cS_EFFECT;
	}

	public String getAPPRAISE_TIME() {
		return APPRAISE_TIME;
	}

	public void setAPPRAISE_TIME(String aPPRAISE_TIME) {
		APPRAISE_TIME = aPPRAISE_TIME;
	}

	public String getPATIENT_NAME() {
		return PATIENT_NAME;
	}

	public void setPATIENT_NAME(String pATIENT_NAME) {
		PATIENT_NAME = pATIENT_NAME;
	}

	public String getSEX() {
		return SEX;
	}

	public void setSEX(String sEX) {
		SEX = sEX;
	}

	public String getPHONE() {
		return PHONE;
	}

	public void setPHONE(String pHONE) {
		PHONE = pHONE;
	}

	public String getCS_TIME() {
		return CS_TIME;
	}

	public void setCS_TIME(String cS_TIME) {
		CS_TIME = cS_TIME;
	}

	public String getUSER_ID() {
		return USER_ID;
	}

	public void setUSER_ID(String uSER_ID) {
		USER_ID = uSER_ID;
	}


	
}